##
## Makefile for  in /home/gomes_m//my-project-a-moi/client
## 
## Made by mickael gomes
## Login   <gomes_m@epitech.net>
## 
## Started on  Mon Jul 29 14:38:19 2013 mickael gomes
## Last update Tue Jul 30 19:18:42 2013 mickael gomes
##

NAME	=	client

CC	=	gcc -W -Wall -Werror -Wextra

RM	=	rm -f

ECHO	=	echo -e

CFLAGS	=	-I ./includes/

SRC	=	src/main.c			\
		src/my_cd.c			\
		src/utils.c			\
		src/init.c			\
		src/communication.c		\
		src/check_error.c		\
		src/my_str_to_wordtab.c		\
		src/my_str_to_wordtab_plus.c	\
		src/xfunctions.c		\
		src/xfunctions2.c		\
		src/xfunctions3.c		\
		src/lib.c			\
		src/lib2.c			\
		src/exec_cmd.c			\
		src/transfert.c			\

OBJ	=	$(SRC:.c=.o)

all	:	$(NAME)

$(NAME)	:	$(OBJ)
		$(CC) -o $(NAME) $(OBJ) $(CFLAGS)
		@$(ECHO) '\033[0;32m> Client Compiled\033[0m'

clean	:
		$(RM) $(OBJ)
		@$(ECHO) '\033[0;36m> Object files removed\033[0m'

fclean	:	clean
		$(RM) $(NAME)
		@$(ECHO) '\033[0;36m> Binary files removed\033[0m'

re	:	fclean all